//package com.chat.api.listener;
//
//import com.chat.api.utils.util.ContextUtil;
//import com.chat.api.utils.util.MapUtilss;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.context.event.EventListener;
//import org.springframework.data.redis.core.RedisTemplate;
//
//import javax.servlet.http.HttpSession;
//import javax.servlet.http.HttpSessionEvent;
//import java.util.Map;
//
//@Configuration
//public class SpringSessionConfig {
//    @EventListener
//    public void onSessionDeleted(SessionDeletedEvent deletedEvent) {
////        System.out.println("session销毁2");
////
////        HttpSession session = deletedEvent.getSession();
////        RedisTemplate redisTemplate = ContextUtil.getBean(RedisTemplate.class);
////        redisTemplate.delete(session.getId());
////        redisTemplate.delete("session"+session.getId());
////        System.out.println("session销毁完成！！！");
//
//    }
//}
